home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / EnhanceMail.1.3 / Source / HelpPanel.m < prev    next >
Encoding:
Text File  |  1995-11-05  |  1.3 KB  |  47 lines

  1. /* -*-C-*-
  2. *******************************************************************************
  3. *
  4. * File:         HelpPanel.m
  5. * RCS:          $Header: /usr/local/lib/cvs/EnhanceMail/HelpPanel.m,v 1.1.1.1 1995/11/05 18:34:31 cedman Exp $
  6. * Description:  
  7. * Author:       Carl Edman
  8. * Created:      Tue Oct 31 22:16:31 1995
  9. * Modified:     Sun Nov  5 10:20:25 1995 (Carl Edman) cedman@capitalist.princeton.edu
  10. * Language:     C
  11. * Package:      N/A
  12. * Status:       Experimental (Do Not Distribute)
  13. *
  14. * (C) Copyright 1995, but otherwise this file is perfect freeware.
  15. *
  16. *******************************************************************************
  17. */
  18.  
  19. #import "EnhanceMail.h"
  20. #import "HelpPanel.h"
  21.  
  22. @implementation EnhanceHelpPanel
  23. + finishLoading:(struct mach_header *)header
  24.    {
  25.    if (EnhanceBundle==0) EnhanceBundle=[NXBundle bundleForClass:[self class]];
  26.    [self poseAs:[self superclass]];
  27.    return self;
  28.    }
  29.  
  30. + newForDirectory:(const char *)helpDirectory
  31.    {
  32.    id ret=[super newForDirectory:helpDirectory];
  33.    char path[MAXPATHLEN+1],*c;
  34.    
  35.    if (EnhanceBundle && ret && (strcmp(helpDirectory,"Help")==0) 
  36.        && [EnhanceBundle getPath:path forResource:"EnhanceHelp" ofType:0])
  37.       {
  38.       for(c=path;*c;c++);
  39.       while((c>=path) && (*c!='/')) c--;
  40.       *c='\0';
  41.       [ret addSupplement:"EnhanceHelp" inPath:path];
  42.       }
  43.  
  44.    return ret;
  45.    }
  46. @end
  47.